Vue.component('friendHeader',{
    props:["isnav","number"],
    template: '<div class="navFixed"><header>乐友<span class="friend-newf"></span></header>\n' +
    '    <nav class="clearfix">\n' +
    '        <a href="/friend" :class="{active:number==1}">消息</a>\n' +
    '        <a href="/friend/friendsList" :class="{active:number==2}">好友</a>\n' +
    '        <a href="/friend/circleList" :class="{active:number==3}">圈子</a>\n' +
    '        <a href="/friend/dynamicList" :class="{active:number==4}">动态</a>\n' +
    '    </nav></div>',
    data: function () {
        return {
        }
    },
    watch:{

    },
    mounted:function(){
    },
    methods:{
        bgimg:function(url){
            url = url?url:"";
            return {
                "background-image":'url("'+url+'"),url("")'
            }
        }
    }
});